package com.qmth.gkwb.data.repository;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;

import com.qmth.gkwb.data.constant.OrderStatus;
import com.qmth.gkwb.data.entity.Order;

public interface OrderRepo extends MongoRepository<Order, String> {

	List<Order> findByExamId(String examId);
	
	List<Order> findByExamIdAndStatus(String examId,OrderStatus status);
	
	int countByStatusAndExamId(OrderStatus status,String examId);
}
